﻿<Window x:Class="UIExceptionHandlerWPF.ErrorHandlerForm"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Error" Height="497" Width="515" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" ResizeMode="NoResize" Icon="Error.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Label Name="MessageLabel"
            Content="An unexpected error occurred. Please help to fix it. Describe what you did when the error &#xD;&#xA;occurred or how to reproduce it and then click send. &#xD;&#xA;Or send error to email " 
            HorizontalAlignment="Left" 
            Margin="0" VerticalAlignment="Top" 
            Height="61" 
            Width="507"/>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Label 
                Grid.Column="0" 
                Content="Your email for reply:" 
                HorizontalAlignment="Center" 
                VerticalAlignment="Center" 
                Height="26" />
            <TextBox  Grid.Column="1" Name="ReplyEmailTextBox" VerticalAlignment="Center"  Height="22" Margin="0,0,10,0"/>
        </Grid>

        <Grid Grid.Row="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Label 
                Grid.Column="0" 
                Content="Field for additional information about the error:" 
                HorizontalAlignment="Left" 
                VerticalAlignment="Bottom"/>
            <TextBox Name="DetailInfoTextBox" VerticalAlignment="Center" Grid.Row="1"  Height="54" Margin="10,1,10,2"  />
        </Grid>
        
        <Grid Grid.Row="3" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="134*"  />
                <ColumnDefinition Width="63*" />
                <ColumnDefinition Width="138*" />
                <ColumnDefinition Width="172*" />
            </Grid.ColumnDefinitions>
            <Label Name="ShowErrorLinkLabel" Grid.Column="0" Content="Error detail information" VerticalAlignment="Center" Foreground="Blue" Height="26" Margin="0,8,0,9" Cursor="Hand"   />
            <Label Name="LogFileLinkLabel" Grid.Column="1" Content="Log File" VerticalAlignment="Center"  Foreground="Blue" Height="26" Margin="0,8,0,9" Cursor="Hand"  />
            <Button Name="DebugButton" Grid.Column="2" Content="Debug"  Width="110" Height="30" />
            <Button Name="SendButton" Grid.Column="3" Content="Send To Developer" Width="148" Height="30" />
        </Grid>

        <TextBox Name="ExceptionInfoTextBox" Grid.Row="4" Margin="10,0,10,10" IsReadOnly="True" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"  />

    </Grid>
</Window>
